@layout("/common/_container.html",{js:["/assets/modular/system/meter/meter.js"]}){
<div class="layui-body-header">
    <span style="line-height: 36px;">能源表信息</span>
    <div style="float:right;">
        @if(shiro.hasPermission("/meter/add")){
        <button id="btnAdd" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;" src="${ctxPath}/assets/common/images/add.svg"/>&nbsp;&nbsp;添 加
        </button>
        @}
        <button id="exportAll" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;margin-left: -3px" src="${ctxPath}/assets/common/images/download.svg"/>&nbsp;模板下载
        </button>
        <button id="importData" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;margin-left: -3px" src="${ctxPath}/assets/common/images/upload.svg"/>&nbsp;导入模板
        </button>
        &nbsp;
        <button id="btnExp" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;" src="${ctxPath}/assets/common/images/download.svg"/>&nbsp;&nbsp;导 &nbsp;出
        </button>
    </div>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="meterNo" class="layui-input" type="text" placeholder="表编号"/>
                            </div>
                            <div class="layui-inline">
                                <input id="shopName" class="layui-input" type="text" placeholder="品牌名称"/>
                            </div>
                            <div class="layui-inline">
                                <input id="shopAdr" class="layui-input" type="text" placeholder="铺位号"/>
                            </div>
                            <div class="layui-inline">
                                <select id="meterStatus">
                                    <option value="">状态</option>
                                    <option value="1">新建</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select id="meterType">
                                    <option value="">能源表类型</option>
                                    <option value="1">水表</option>
                                    <option value="2">电表</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select id="meterModel">
                                    <option value="">能源表模式</option>
                                    <option value="1">商铺</option>
                                    <option value="2">广告位</option>
                                    <option value="3">临时场地</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn " style="height: 36px;line-height: 36px"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="reset"  class="layui-btn layui-btn-primary" style="height: 36px;line-height: 36px">
                                    重置
                                </button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="meterTable" lay-filter="meterTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/meter/edit")){
    <a class=" v" lay-event="edit" >编辑 </a><div class="vi"></div>
    @}
    @if(shiro.hasPermission("/meter/editStartMum")){
    <a class="v" lay-event="editStartMum">变更起码</a> <div class="vi"></div>
    @}
    @if(shiro.hasPermission("/meter/delete")){
    <a class="v" lay-event="delete">删除 </a>
        @if(shiro.hasPermission("/meter/detail")){
        <div class="vi"></div>
        @}
    @}
    @if(shiro.hasPermission("/meter/detail")){
    <a class=" v" lay-event="detail">详情 </a>
    @}
</script>
@}